package com.zsr.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动类
 * @author zsr
 * @date 2021/6/9 20:29
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class) //解除自动加载DataSourceAutoConfiguration
@ComponentScan(basePackages = {"com.zsr"})
@EnableDiscoveryClient  //微服务注册
public class OssApplication {
    public static void main(String[] args) {
        SpringApplication.run(OssApplication.class);
    }
}
